﻿using AdminSystem.Domain.User;
using AdminSystem.Write.API.Command.CultivationInfoCommand;
using AdminSystem.Write.API.Command.EnterprisesCommand;
using AdminSystem.Write.API.Command.FarmsCommand;
using AdminSystem.Write.API.Command.SlaughtersCommand;
using AdminSystem.Write.API.Command.TracebilityCommand;
using AutoMapper;

namespace AdminSystem.Write.API
{
    public class AutoMapperFile : Profile
    {
        public AutoMapperFile()
        {
            CreateMap<TracebilityCommand, Tracebility>().ReverseMap();
            CreateMap<TracebilityUpdateCommand, Tracebility>().ReverseMap();
            CreateMap<CultivationInfoAddCommand, CultivationInfo>().ReverseMap();
            CreateMap<FarmsAddCommand, Farms>().ReverseMap();
            CreateMap<SlaughterCommand, Slaughter>().ReverseMap();
            CreateMap<EnterpriseCommand, Enterprise>().ReverseMap();
        }
    }
}
